﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SampleCardEdit.aspx.cs" Inherits="PPAP.Web.Master.SampleCardEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <title></title>
    <script type="text/javascript">
        function check() {
            var testitem = document.getElementById("txtTest").value;
            var remark = document.getElementById("txtRemark").value;
        if (testitem == "") {
            alert("Test item is null");
            return false;
        }
        if (remark == "") {
            alert("Remark is null");
            return false;
        }
        return confirm('Are you sure you want to save?');
        }
    </script>
</head>
<body style="font-family: Arial, Helvetica, sans-serif;overflow-x:hidden;"  bgcolor="#E7E8E8" >
    <form id="form1" runat="server">
    <div>
    <table width="60%" align="center" style="margin-top:10px;">
    <tr><td>
        Test item
        </td><td>
            <asp:TextBox ID="txtTest" runat="server" Width="280px"></asp:TextBox><font color='red'>*</font>
        </td></tr><tr><td>
            Department
        </td><td>
            <asp:DropDownList ID="ddlDepartment" runat="server" Width="285px">
            </asp:DropDownList>
        </td></tr>
        <tr><td>
        Remark
        </td><td>
            <asp:TextBox ID="txtRemark" runat="server" Height="70px" TextMode="MultiLine" 
                    Width="280px"></asp:TextBox><font color='red'>*</font>
        </td></tr>
    
    <tr><td colspan="2" align="center"><asp:Button ID="Button1" CssClass="button" runat="server" 
            Text="Add" onclick="Button1_Click" 
            onclientclick="return check();" /></td></tr></table>
    </div>
    </form>
</body>
</html>
